import {Injectable} from '@angular/core';
import {Http} from '@angular/http';

@Injectable()

export class ManhuaFavorProvider{

    constructor(private http:Http){}

    isFavor(param){
        return this.http.post('/api/favors/find',param);
    }

    favor(param){
        return this.http.post('/api/favors/add',param);
    }

    updateFavor(param){
        return this.http.post('/api/favors/update',param);
    }

    unfavor(param){
        return this.http.post('/api/favors/delete',param);
    }
    
}